<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopDetailBusinTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_detail_busin', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('shop_id',10)->comment('商户id');
            $table->decimal('max_sales',16,2)->comment('最大消费金额');
            $table->string('business_hours',255)->comment('营业时间');
            $table->integer('buy_number')->comment('当日最大消费次数');
            $table->integer('week_double_day')->comment('每周最多翻倍天数');
            $table->string('photos',1000)->comment('环境组图');
            $table->string('goods_photos',3000)->comment('产品组图');
            $table->string('consumer_info',1000)->comment('消费须知');
            $table->string('invoice',255)->comment('发票信息');
            $table->string('not_partake_goods',255)->comment('不参与的商品');
            $table->string('description',1000)->comment('商家简介');
            $table->string('contact_number',255)->comment('联系电话');
            $table->string('sms_phone',255)->comment('接收短信手机');
            $table->string('last_event',32)->comment('最后活动日期');
            $table->integer('old_id')->comment('原系统id');
            $table->string('old_maintainer',255)->comment('原系统维护人');
            $table->string('qr_code',32)->comment('随机二维码');
            $table->dateTime('binding_time')->comment('随机二维码');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('shops_detail_busin');
    }
}
